package com.airycode.distribution.distribution1.base;

import com.airycode.distribution.distribution1.page.DataPage;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * @author admin
 * @date 2017/8/15
 */
public class PageResult<T extends Serializable> extends BaseResult {

    private static final long serialVersionUID = 607254008155308777L;

    @JsonProperty("result")
    private DataPage<T> page;

    public PageResult() {
    }

    public PageResult(DataPage<T> page) {
        this.page = page;
    }

    public DataPage<T> getPage() {
        return page;
    }

    public void setPage(DataPage<T> page) {
        this.page = page;
    }

}